<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="/WEB-INF/struts-html" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean" prefix="bean"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<%request.setAttribute("ctx",request.getContextPath()); %>
<html>
<head>
<link href="${ctx}/extend/css/style.css" rel="stylesheet"
	type="text/css" />
<script src="${ctx}/extend/js/jquery/jquery.js" type="text/javascript"></script>
<script src="${ctx}/extend/js/dutil/DUtil.js" type="text/javascript"></script>
<script src="${ctx}/extend/css/css.js" type="text/javascript"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="${ctx}/css/style.css" rel="stylesheet" type="text/css" />
<script src="${ctx}/js/common.js" type="text/javascript"></script>
<s:head theme="xhtml" />
<sx:head parseContent="true" />
<title>upload log</title>
<script type="text/javascript">
    function viewDetail(mdId) {
    	window.open('${ctx}/admin/viewMd?id='+mdId, "md_view",  "width=1000,height=750,top=6,left=10,scrollbars=auto");
    }
</script>
</head>
<body class="maintable">
	<div class="dclass_container dclass_container_collapsible">
		<div class="dclass_container_header">
			<div class="dclass_container_title">lisr upload log</div>
		</div>
		<div class="dclass_container_content">
			<div class="search">
				<form action="" method="get">
					<table>
						<tr>
							<td>ItemID:<input type="text" class="inputsearch"
								name="uploadQueryMdId" value="${uploadQueryMdId}" />
								&nbsp;&nbsp;&nbsp; Title:<input type="text" class="inputsearch"
								name="uploadQueryMdTitle" value="${uploadQueryMdTitle}" />
								&nbsp;&nbsp;&nbsp; Ebay Act:<input type="text"
								class="inputsearch" name="queryEbayAct" value="${queryEbayAct}" />
								&nbsp;&nbsp;&nbsp; <input type="image"
								src="${ctx}/images/btn_search.gif" align="absbottom" /></td>
						</tr>
					</table>
				</form>
			</div>


		</div>
	</div>
	<br style="line-height: 5px;" />


	<div class="dclass_container">
		<div class="dclass_container_header">
			<div class="dclass_container_title">Item List</div>
		</div>
		<div class="dclass_container_content">
			<!--内容开始-->
			<table class="dclass_data" id="table1" style="display: block">
				<thead>
					<tr>

						<th align="center" width="4%">no</th>
						<th align="center" width="10%">Item Id</th>
						<th align="center" width="20%">Item Title</th>
						<th align="center" width="14%">upload Person</th>
						<th align="center" width="10%">Ebay ID</th>
						<th align="center" width="10%">Ebay Account</th>
						<th align="center" width="10%">Status</th>
						<th align="center" width="10%">Upload Time</th>
					</tr>
				</thead>
				<tbody>
					<c:choose>
						<c:when test="${empty uploadLogList}">
							<tr>
								<td style="background-color: #ffffff" colspan="8">no result</td>
							</tr>
						</c:when>
						<c:otherwise>
							<s:iterator value="uploadLogList" status="status">
								<tr class="list_td" onMouseOver="this.className='list_td0'"
									onMouseOut="this.className='list_td'">

									<td align="center"><s:property value="#status.index + 1" /></td>
									<td align="center"><s:property
											value="uploadLogList[#status.index].mdId" /></td>

									<td align="right"><s:property
											value="uploadLogList[#status.index].mdTitle" />&nbsp;</td>

									<td align="center"><s:property
											value="uploadLogList[#status.index].userName" /></td>

									<td align="center"><s:property
											value="uploadLogList[#status.index].ebayId" /></td>
									<td align="center"><s:property
											value="uploadLogList[#status.index].ebayAct" /></td>
									<td align="center"><s:if
											test="uploadLogList[#status.index].Status ==0">failure</s:if>
										<s:if test="uploadLogList[#status.index].Status ==1">success</s:if>
									</td>
									<td align="center"><s:property
											value="uploadLogList[#status.index].uploadTime" /></td>
								</tr>
							</s:iterator>
						</c:otherwise>
					</c:choose>
				</tbody>
			</table>
			<div class="dclass_pager">
				<table width="100%">
					<tr>
						<td width="100%" height="1px" bgcolor="#336699"></td>
					</tr>
					<tr>
						<td width="100%" align="center"><c:choose>
								<c:when test="${empty uploadLogList}">共 0页  第0页   共0条记录</c:when>
								<c:otherwise>
									<c:import url="/admin/common/page3.jsp"></c:import>
								</c:otherwise>
							</c:choose></td>
					</tr>
				</table>
			</div>
			<!--内容结束-->
		</div>
	</div>
</body>
</html>